package com.xd.core.system.service;

import com.xd.core.system.dto.LoginVo;
import com.xd.core.system.dto.ValidateH5TokenDto;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public interface LoginService {
    Map<String,Object> login(LoginVo user, HttpServletRequest request) throws Exception;

    void logout(HttpServletRequest request);

    Map<String, Object> allopatricLogin(LoginVo user, HttpServletRequest request) throws Exception;

    Map<String, Object> smslogin(LoginVo user, HttpServletRequest request) throws Exception;

    Map<String, Object> h5Smslogin(LoginVo user, HttpServletRequest request) throws Exception;

    void validateH5Token(ValidateH5TokenDto validateH5TokenDto) throws Exception;
}
